﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using KingRoad.EPM.DeviceDAL;
using KingRoad.EPM.DeviceEntity.Model;
using Unis.Framework.Core.Utility;


namespace KingRoad.EPM.DeviceBLL.UIRules
{
    /// <summary> 
    /// 客户端业务处理类。 
    /// 文件生成时间 2018/5/14 16:45:53
    /// </summary> 
    public class BllVehicleflowUIRule
    {
        private readonly IBllVehicleflowService _bllVehicleflowService;
        
        
        public BllVehicleflowUIRule(){}
        
        /// <summary> 
        /// construct function... 
        /// </summary> 
        public BllVehicleflowUIRule(IBllVehicleflowService  bllVehicleflowService)
        {
           _bllVehicleflowService=bllVehicleflowService;
        }
        /// <summary>
        /// 根据条件分页查询信息
        /// </summary>
        /// <param name="numCurrentPage">当前页</param>
        /// <param name="numPerPage">每页数据大小</param>
        /// <param name="orderByField">排序字段名称</param>
        /// <param name="totalRecord">总数据量</param>
        /// <param name="sqlCondition">sql查询条件</param>
        /// <param name="desc">排序方式</param>
        /// <param name="table">表名</param>
        /// <returns></returns>
        public List<BllVehicleflowInfo> GetEntityListByContionRe(int numCurrentPage, int numPerPage,
                                                                        string orderByField, out int totalRecord, string sqlCondition, string desc, string table)
        {
            var list = _bllVehicleflowService.GetEntityListByContionRe(numCurrentPage, numPerPage, orderByField, out totalRecord, sqlCondition, desc, table);
            return list;
        }

        //供查询统计报表用
        public List<BllVehicleflowInfo> GetTotalEntityListByContionRe(int numCurrentPage, int numPerPage,
                                                                      string orderByField, out int totalRecord, string sqlCondition, string desc, string table)
        {
            var list = _bllVehicleflowService.GetTotalEntityListByContionRe(numCurrentPage, numPerPage, orderByField, out totalRecord, sqlCondition, desc, table);
            return list;
        }
    }
}

